﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="WebUI.Demo.List" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="./css/StyleSheet.css" type="text/css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <table style="width:100%; border: 1px solid #e9e9e9; border-collapse: collapse;">
        <tr>
            <th class="nowrap">所属节点</th>
            <th class="nowrap">ID</th>
            <th class="nowrap">内容标题</th>
        </tr>
        <x:RepeaterExt ID='RepeaterExtJs' runat='server' Data="List" GetHrefx="false">
            <ItemTemplate>
                <tr style='background-color: <%# (Container.ItemIndex %2 == 0) ? "#fafafa" : "#ffffff"%>'
                    onmouseover="this.style.background='#ddeeff'"
                    onmouseout="this.style.background='<%# (Container.ItemIndex % 2 == 0) ? "#eeeeee" : "#ffffff"%>'">
                    <td class="nowrap middle"><%# Eval("NodeTitle") %></td>
                    <td class="nowrap middle"><%# Eval("InfoPkId") %></td>
                    <td><%# Eval("InfoTitle") %></td>
                </tr>
            </ItemTemplate>
            <EmptyTemplate><tr><td colspan="3" style="text-align: center;">点击左侧树显示内容列表.</td></tr></EmptyTemplate>
        </x:RepeaterExt>
    </table>
</body>
</html>
